<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of path_history_model
 *
 * @author phamtruong
 */
class path_history_model extends CI_Model{
    //put your code here
    public function get_title($id){
        $query=  $this->db->query("select v.id, v.version, v.modified_date,substr(m.description, 1,200) short_content ,b.fullname
                from learning_path l, path_version v , path_meta m, member b
                where  v.contributor_id =b.id 
                and m.id = v.path_meta_id 
                and  v.learning_path_id = '$id'");
        return $query->result_array();
    }
}

?>
